<?php
	include '../com/mss/action/MonasteryAction.php';
	
	$monestery_action = new MonasteryAction();
	$monesteries = $monestery_action->selectAll();
?>
<h4>Monastery Information</h4>
<table id="customers" border="1">
	<tr>
		<th>Name</th>
		<th>Location</th>
		<th>Address</th>
		<th>Telephone</th>
		<th>Update</th>
	</tr>
	<?php foreach ($monesteries as $monestery) {?>
	<tr>
		<td><?php echo $monestery->getName()?></td>
		<td><?php echo $monestery->getLocation()?></td>
		<td><?php echo $monestery->getAddress()?></td>
		<td><?php echo $monestery->getTelephone()?></td>
		<td><a href="./edit_monastery.php?id=<?php echo $monestery->getID();?>">[Edit]</a> &nbsp; <a href="#">[Remove]</a></td>
	</tr>
	<?php }?>
</table>
